

{% load static %}

<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}" />



{% if lasted_question_list %}
    <ul>
        <!--推荐的用法-->
        {% for question in lasted_question_list %}
        <li><a href="{% url 'polls:detail' question.id %}" >{{ question.question_text }}</a></li>
        {% endfor %}
    </ul>
{% else %}
    <p>没有待投票的问题</p>
{% endif %}
